From: Jonas Dreßler Date: Thu, 5 Dec 2019 13:06:48 +0000 (+0100) Subject: appDisplay: Make AllViews folderIcons property private X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~327 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=203c3f9949bced62bde51a8e2ced6dc8c3df7ebf;p=gnome-shell.git appDisplay: Make AllViews folderIcons property private This property is not used anywhere outside the class, make it private. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/799 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index d10779efd..102197176 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -330,7 +330,7 @@ var AllView = GObject.registerClass({ this._pageIndicators.connect('scroll-event', this._onScroll.bind(this)); this.add_actor(this._pageIndicators); - this.folderIcons = []; + this._folderIcons = []; this._stack = new St.Widget({ layout_manager: new Clutter.BinLayout() }); let box = new St.BoxLayout({ @@ -448,7 +448,7 @@ var AllView = GObject.registerClass({ icon.visible = true; }); - this.folderIcons.forEach(folder => { + this._folderIcons.forEach(folder => { let folderApps = folder.getAppIds(); folderApps.forEach(appId => { let appIcon = this._items.get(appId); @@ -482,7 +482,7 @@ var AllView = GObject.registerClass({ let appSys = Shell.AppSystem.get_default(); - this.folderIcons = []; + this._folderIcons = []; let folders = this._folderSettings.get_strv('folder-children'); folders.forEach(id => { @@ -494,7 +494,7 @@ var AllView = GObject.registerClass({ icon.connect('apps-changed', this._redisplay.bind(this)); } appIcons.push(icon); - this.folderIcons.push(icon); + this._folderIcons.push(icon); }); // Allow dragging of the icon only if the Dash would accept a drop to @@ -774,8 +774,8 @@ var AllView = GObject.registerClass({ this._availWidth = availWidth; this._availHeight = availHeight; // Update folder views - for (let i = 0; i < this.folderIcons.length; i++) - this.folderIcons[i].adaptToSize(availWidth, availHeight); + for (let i = 0; i < this._folderIcons.length; i++) + this._folderIcons[i].adaptToSize(availWidth, availHeight); } _resetOvershoot() {